(function() {
	$(".order_o2_mid_con li:nth-child(4) span").on("click", function() {
		$(".order2_mask").fadeIn();
	})
	$("#o2_cancer").on("click", function() {
		$(".order2_mask").fadeOut();
	})

	$(".order_more").on("click", function(e) {
		$(".order_inf_window").fadeIn();

		$(document).one("click", function() {
			$(".order_inf_window").fadeOut();
		});

		e.stopPropagation();
	});
	$(".order_p").on("click", function(e) {
		e.stopPropagation();
	});

	$("#o5_cof").on("click", function() {
		$(".order5_mask").fadeIn()
	})
	$("#o5_dele").on("click", function() {
		$(".order5_mask").fadeOut()
	})

	/***遮罩层****/
	var o8_clearOrder = $(".o8_clearOrder"),
		o8_confOrder = $(".o8_confOrder"),
		shanchu2 = $("#shanchu2"),
		shanchu1 = $("#shanchu1"),
		o5_ok = $("#o5_ok"),
		o5_dele = $("#o5_dele"),
		o5_no = $("#o5_no"),
		shanchuchenggong = $("#shanchuchenggong"),
		chacha = $("#chacha");
	$(".o4_cof").on("click", function() {
		shanchu1.fadeIn();
	});
	/*****根据弹窗选择对应的语句*******/
	o5_dele.on("click", function() {
		shanchu1.css("display", "none");
	});
	o5_ok.on("click", function() {
		shanchu1.fadeOut();
		window.location.href="./dingdanxiangqing_querenshouhuo.html";
	});
	o5_no.on("click", function() {
		shanchu1.fadeOut();
		shanchu2.fadeIn();
	});
	chacha.on("click", function() {
		shanchu2.fadeOut();
	})
		/*************动态改变状态的距离*******************/
//		var o4_height = (51 - $(".order_o4_b2").length);
//	$(".order_o4_b3").css("bottom", "" + o4_height + "%")
})();